package org.fhm.zdte.common.config;

import org.fhm.substrate.annotation.Configuration;
import org.fhm.substrate.annotation.Value;

/**
 * Configuration Object that Inherit {@link AbstractZDTEConfiguration}.
 * <p>Its configuration information from the file that is {@link AbstractZDTEConfiguration} configure.</p>
 * <p>Configuration information of the communication protocol</p>
 *
 * @author 谭波
 * @since 2023/10/31
 */
@Configuration("protocol")
public class ProtocolConfiguration extends AbstractZDTEConfiguration {

    @Value("name")
    private String name;

    @Value("net.rate")
    private int netRate;

    @Value("packet.length")
    private int packetLength;

    public String getName() {
        return name;
    }

    public int getNetRate() {
        return netRate;
    }

    public int getPacketLength() {
        return packetLength;
    }
}
